@import 'antd/dist/antd.css';

* {
  margin: 0;
  padding: 0;
}

h1,
h2,
h3,
h4 {
  font-weight: 400;
  font-size: 16px;
  margin: 0;
}

input {
  outline: none;
  border: none;
}

html,
body,
#root,
#app {
  height: 100%;
}


// ----登录/注册----
.register {
  height: 100%;
  background: url(./assets/bg.png) no-repeat;
  background-size: 100%;
  display: flex;
  justify-content: center;
  align-items: center;

  .register-box {
    width: 400px;
    padding: 20px;
    box-sizing: border-box;
    border-radius: 20px;
    background-color: #fff;

    h2 {
      text-align: center;
      font-size: 24px;
      font-weight: 700;
      margin : 12px 0;
    }

  }
}

.login {
  height: 100%;
  background: url(./assets/bg.png) no-repeat;
  background-size: 100%;
  display: flex;
  justify-content: center;
  align-items: center;

  .login-box {
    width: 400px;
    padding: 20px;
    box-sizing: border-box;
    border-radius: 20px;
    background-color: #fff;

    h2 {
      text-align: center;
      font-size: 24px;
      font-weight: 700;
      margin: 12px 0;
    }

  }
}

// ----首页----
.index {
  height: 100%;
  display: flex;
  flex-direction: column;

  .header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #fff;

    .left {
      display: flex;

      .logo {
        width: 200px;
        display: flex;
        align-items: center;

        img {
          width: 30px;
          height: 30px;
          border-radius: 50%;
          margin-right: 12px;
        }
      }
    }

    .right {
      display: flex;
      align-items: center;

      .box {
        height: 24px;
        width: 24px;
        background-color: #c0c0c0;
        border-radius: 50%;
        line-height: 24px;
        text-align: center;
        margin-left: 12px;

        svg {
          color: #fff;
        }
      }
    }
  }

}

// Home
.home {
  flex: 1;
  padding: 20px;

  .swiper {
    width: 100%;
    height: 300px;

    img {
      width: 100%;
      height: 100%;
    }
  }

  .notices {
    .title {
      padding-left: 20px;
      margin: 20px 0;
      border-left: 3px solid #1890ff;
    }

    .list {
      padding-left: 20px;
      line-height: 40px;
    }
  }

}

// Service
.service {
  flex: 1;
  padding: 20px;

  .swiper {
    width: 100%;
    height: 300px;
    img {
      width: 100%;
      height: 100%;
    }
  }

  .notices {
    .title {
      padding-left: 20px;
      margin: 20px 0;
      border-left: 3px solid #1890ff;
    }

    .list {
      padding-left: 20px;
      margin-top: 40px;
      display: flex;
      list-style: none;

      li {
        margin-right: 36px;
        text-align: center;

        img {
          width: 60px;
        }

        p {
          font-size: 14px;
          margin-top: 8px;
        }
      }
    }
  }

}

// Staff
.staff {
  flex: 1;

  aside {
    background-color: #fff;

    .title {
      padding: 6px 24px;
      font-size: 24px;
    }
  }

  main {
    background-color: #fff;

    .manager {
      padding: 36px 24px;
      background-color: #f0f2f5;

      h2 {
        height: 60px;
        font-size: 24px;
      }

      .search {
        margin-bottom: 16px;

        .btn {
          margin-left: 16px;
        }
      }
    }
  }

}

// Custom
.custom {
  flex: 1;

  aside {
    background-color: #fff;

    .title {
      padding: 6px 24px;
      font-size: 24px;
    }
  }

  main {
    background-color: #fff;

    .custommange {
      padding: 36px 24px;
      background-color: #f0f2f5;

      h2 {
        height: 60px;
        font-size: 24px;
      }

      .search {
        margin-bottom: 18px;

        .btn {
          margin-left: 16px;
        }
      }

      .opr {
        display: flex;
        justify-content: space-between;
        margin-bottom: 36px;
      }
    }
  }

}

// System
.system {
  flex: 1;

  aside {
    background-color: #fff;

    .title {
      padding: 6px 24px;
      font-size: 24px;
    }
  }

  main {
    width: 100%;
    background-color: #fff;

    .realtimedata {
      padding: 36px 24px;
      background-color: #f0f2f5;

      h2 {
        height: 60px;
        font-size: 24px;
      }

      .data-box {
        display: flex;
        justify-content: space-between;
        margin-bottom: 24px;

        .data {
          width: 230px;
          border: 1px solid #dededd;

          .top {
            height: 120px;
            background-color: #fff;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: space-evenly;
            font-size: 18px;

            .num {
              font-size: 30px;
              color: #048aff;
            }
          }

          .bottom {
            height: 60px;
            background-color: #f5f5f5;
            display: flex;
            justify-content: center;
            align-items: center;
            font-size: 16px;
          }

        }

      }

      .echarts {
        h3 {
          font-size: 24px;
        }

        #main {
          width: 1250px;
          height: 350px;
        }
      }
    }

    .historydata {
      padding: 36px 24px;
      background-color: #f0f2f5;

      h2 {
        height: 60px;
        font-size: 24px;
      }

      .data-box {
        display: flex;
        justify-content: space-between;
        margin-bottom: 24px;

        .data {
          width: 230px;
          border: 1px solid #dededd;

          .top {
            height: 120px;
            background-color: #fff;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: space-evenly;
            font-size: 18px;

            .num {
              font-size: 30px;
              color: #048aff;
            }
          }

          .bottom {
            height: 60px;
            background-color: #f5f5f5;
            display: flex;
            justify-content: center;
            align-items: center;
            font-size: 16px;
          }

        }
      }
      
      .echarts {
        h3 {
          font-size: 24px;
        }

        #main {
          width: 1250px;
          height: 350px;
        }
      }
    }
  }

}

// Loading 动画
.example{
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  .ant-spin-dot{
font-size: 100px;
  }
}